{% if legs %}
    <ul>
    {% for leg in legs %}
        <li><a href="/legislators/{{ leg.id }}/">{{ leg.name }}</a></li>
    {% endfor %}
    </ul>
{% else %}
    <p>No legislators from that state are available.</p>
{% endif %}